home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / share / gedit-2 / plugins / snippets / sh.xml < prev    next >
Encoding:
Extensible Markup Language  |  2009-04-14  |  1.0 KB  |  48 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <snippets language="sh">
  3.   <snippet id="elif">
  4.     <text><![CDATA[elif [[ ${1:condition} ]]; then
  5.     $0]]></text>
  6.     <description>elif ..</description>
  7.     <tag>elif</tag>
  8.   </snippet>
  9.   <snippet id="case">
  10.     <text><![CDATA[case ${1:choice} in
  11. ${2:first})
  12.     $3
  13.     ;;
  14. *)
  15.     $4
  16.     ;;
  17. esac]]></text>
  18.     <description>case ..</description>
  19.     <tag>case</tag>
  20.   </snippet>
  21.   <snippet id="for">
  22.     <text><![CDATA[for (( ${1:i = 0}; ${2:i < 10}; ${3:i++} )); do
  23.     $0
  24. done]]></text>
  25.     <description>for .. done</description>
  26.     <tag>for</tag>
  27.   </snippet>
  28.   <snippet id="if">
  29.     <text><![CDATA[if [[ ${1:condition} ]]; then
  30.     $0
  31. fi]]></text>
  32.     <description>if .. then</description>
  33.     <tag>if</tag>
  34.   </snippet>
  35.   <snippet id="sh">
  36.     <text><![CDATA[#!/bin/sh
  37. $0]]></text>
  38.     <description>#!/bin/sh</description>
  39.     <tag>sh</tag>
  40.   </snippet>
  41.   <snippet id="bash">
  42.     <text><![CDATA[#!/bin/bash
  43. $0]]></text>
  44.     <description>#!/bin/bash</description>
  45.     <tag>bash</tag>
  46.   </snippet>
  47. </snippets>
  48.